<template>
    <div class="app">
        <header class="header">
            {{ $route.fullPath }}
        </header>
        <div class="left">
            <h2 class="title">E-MES</h2>
            <ul class="list">
                <li class="list-item">
                    <router-link to="/home">首页</router-link>
                </li>
                <li class="list-item">
                    <router-link to="/about/us">关于我们</router-link>
                </li> 
                <li class="list-item">
                    <router-link to="/share/docs">帮助</router-link>
                </li>
            </ul>
        </div>
        <div class="right">
            <router-view />
        </div>
    </div>
</template>
<script lang="ts">
import Vue from 'vue';

export default Vue.extend({
    name: 'default',
    data() {
        return {
        };
    },
    mounted() {
    },
    methods: {
    }
});
</script>
<style lang="less">
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    overscroll-behavior-y: none;
}
</style>
<style lang="less" scoped>
.header {
    position: fixed;
    width:100%;
    line-height: 50px;
    background-color:#000000;
    color:#ffffff;
    top: 0;
    left: 0;
}
.left {
    position: fixed;
    top: 50px;
    bottom: 0;
    left: 0;
    background-color:#cacaca;
    height: 100%;
    width:300px;
    z-index: 1;
}

.right{
   margin-top:50px;
   margin-left:300px;
   width:calc(100%-300px);
   height: calc(100%-50px);
}

.list {
    width: 200px;
    height: 100%;
    margin: 0;
    padding: 15px;
}
.list-item {
    line-height: 38px;
    list-style: none;
}

</style>
